package com.dongge.service;

import com.dongge.entity.Authorization;
import com.dongge.entity.Role;
import com.dongge.entity.User;

import java.util.List;
import java.util.Set;

/**
 * Created by zhudong on 2016/8/5.
 */
public interface UserService {
    boolean login(String username,String password);
    boolean register(String username,String password);
    User getUserById(long id);
    List<User> getUsers();
    int delete(long id);
    long save(User user);
    int update(User user);
    User getUserByUsername(String username);
    int reset(long id);
}
